Class PolicyMapQosClassImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.PolicyMapQosClassImpl
All Implemented Interfaces:
IPCObject, PolicyMapQosClass

public class PolicyMapQosClassImpl extends IPCObjectImpl implements PolicyMapQosClass
Information provided by the PKI file:

    \class PolicyMapQosClass
    
    \brief PolicyMapQosClass handles and manipulates QoS classes.
    
    \example network().getDevice("Router0").getPolicyMapManager().getPolicyMapAt(0).getClassAt(0)
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • resetBandwidth

      public void resetBandwidth()
      Information provided by the PKI file:
      
          \brief Resets the bandwidth.
          
              
      Specified by:
      resetBandwidth in interface PolicyMapQosClass
    • setBandwidth

      public void setBandwidth(int bandwidth)
      Information provided by the PKI file:
      
          \brief Sets the bandwidth value.
          
          \param bandwidth, the bandwidth value.
          
              
      Specified by:
      setBandwidth in interface PolicyMapQosClass
      Parameters:
      bandwidth - Takes in a parameter of bandwidth
    • getBandwidth

      public int getBandwidth()
      Information provided by the PKI file:
      
          \brief Returns the bandwidth value.
          
          \return int, the bandwidth value.
          
              
      Specified by:
      getBandwidth in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • setBandwidthPercent

      public void setBandwidthPercent(int percent)
      Information provided by the PKI file:
      
          \brief Sets the bandwidth percentage value.
          
          \param percent, the bandwidth percentage value.
          
              
      Specified by:
      setBandwidthPercent in interface PolicyMapQosClass
      Parameters:
      percent - Takes in a parameter of percent
    • getBandwidthPercent

      public int getBandwidthPercent()
      Information provided by the PKI file:
      
          \brief Returns the bandwidth percentage value.
          
          \return int, the bandwidth percentage value.
          
              
      Specified by:
      getBandwidthPercent in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • setBandwidthRemainingPercent

      public void setBandwidthRemainingPercent(int percent)
      Information provided by the PKI file:
      
          \brief Sets the bandwidth remaining percentage value.
          
          \param percent, the bandwidth remaining percentage value.
          
              
      Specified by:
      setBandwidthRemainingPercent in interface PolicyMapQosClass
      Parameters:
      percent - Takes in a parameter of percent
    • getBandwidthRemainingPercent

      public int getBandwidthRemainingPercent()
      Information provided by the PKI file:
      
          \brief Returns the bandwidth remaining percentage value.
          
          \return int, the bandwidth remaining percentage value.
          
              
      Specified by:
      getBandwidthRemainingPercent in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • isBandwidthConfigured

      public boolean isBandwidthConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if the bandwidth is configured, otherwise false.
          
          \return bool, true if the bandwidth is configured, otherwise false.
          
              
      Specified by:
      isBandwidthConfigured in interface PolicyMapQosClass
      Returns:
      boolean Returns a boolean
    • resetQueueLimit

      public void resetQueueLimit()
      Information provided by the PKI file:
      
          \brief Resets the queue-limit.
          
              
      Specified by:
      resetQueueLimit in interface PolicyMapQosClass
    • getQueueLimit

      public int getQueueLimit()
      Information provided by the PKI file:
      
          \brief Returns the queue-limit value.
          
          \return int, the queue-limit value.
          
              
      Specified by:
      getQueueLimit in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • setQueueLimit

      public void setQueueLimit(int limit)
      Information provided by the PKI file:
      
          \brief Sets the queue-limit value.
          
          \param limit, the queue-limit value.
          
              
      Specified by:
      setQueueLimit in interface PolicyMapQosClass
      Parameters:
      limit - Takes in a parameter of limit
    • getDefaultQueueLimit

      public int getDefaultQueueLimit()
      Information provided by the PKI file:
      
          \brief Returns the default queue-limit value.
          
          \return int, the default queue-limit value.
          
              
      Specified by:
      getDefaultQueueLimit in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • resetPriority

      public void resetPriority()
      Information provided by the PKI file:
      
          \brief Resets the priority.
          
              
      Specified by:
      resetPriority in interface PolicyMapQosClass
    • setPriority

      public void setPriority(int bandwidth, int burst)
      Information provided by the PKI file:
      
          \brief Sets the priority.
          
          \param bandwidth, the priority value.
          \param burst, the burst value.
          
              
      Specified by:
      setPriority in interface PolicyMapQosClass
      Parameters:
      bandwidth - Takes in a parameter of bandwidth
      burst - Takes in a parameter of burst
    • getPriority

      public int getPriority()
      Information provided by the PKI file:
      
          \brief Returns the priority value.
          
          \return int, the priority value.
          
              
      Specified by:
      getPriority in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • setPriorityPercent

      public void setPriorityPercent(int percent, int burst)
      Information provided by the PKI file:
      
          \brief Sets the priority percentage.
          
          \param percent, the percentage value.
          \param burst, the burst value.
          
              
      Specified by:
      setPriorityPercent in interface PolicyMapQosClass
      Parameters:
      percent - Takes in a parameter of percent
      burst - Takes in a parameter of burst
    • getPriorityPercent

      public int getPriorityPercent()
      Information provided by the PKI file:
      
          \brief Returns the priority percentage value.
          
          \return int, the priority percentage value.
          
              
      Specified by:
      getPriorityPercent in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • getPriorityBurst

      public int getPriorityBurst()
      Information provided by the PKI file:
      
          \brief Returns the priority burst value.
          
          \return int, the priority burst value.
          
              
      Specified by:
      getPriorityBurst in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • getPriorityBurstDefault

      public int getPriorityBurstDefault()
      Information provided by the PKI file:
      
          \brief Returns the default priority burst value.
          
          \return int, the default priority burst value.
          
              
      Specified by:
      getPriorityBurstDefault in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • isPriorityConfigured

      public boolean isPriorityConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if the priority is configured, otherwise false.
          
          \return bool, true if the priority is configured, otherwise false.
          
              
      Specified by:
      isPriorityConfigured in interface PolicyMapQosClass
      Returns:
      boolean Returns a boolean
    • addSetDscpPrec

      public void addSetDscpPrec(WredType wredType, boolean ipv4Only, int value)
      Information provided by the PKI file:
      
          \brief Adds DSCP or IP Precedence.
          
          \param wredType,    the QoS policy type.
          QoS policy types:   eWredDscp = 0,
          eWredPrec = 1
          \param ipv4Only, true for IPv4 only, false for both IPv4 and IPv6.
          \param value, the value for the QoS policy type.
          
              
      Specified by:
      addSetDscpPrec in interface PolicyMapQosClass
      Parameters:
      wredType - Takes in a parameter of wredType
      ipv4Only - Takes in a parameter of ipv4Only
      value - Takes in a parameter of value
    • removeSetDscpPrec

      public void removeSetDscpPrec()
      Information provided by the PKI file:
      
          \brief Removes DSCP or IP Precedence.
          
              
      Specified by:
      removeSetDscpPrec in interface PolicyMapQosClass
    • getSetDscpPrec

      public PolicyClassSetDscp getSetDscpPrec()
      Information provided by the PKI file:
      
          \brief Returns the DSCP or IP precedence.
          
          \return PolicyClassSetDscp, the PolicyClassSetDscp object.
          
              
      Specified by:
      getSetDscpPrec in interface PolicyMapQosClass
      Returns:
      PolicyClassSetDscp Returns a PolicyClassSetDscp
    • resetShapeAvgCir

      public void resetShapeAvgCir()
      Information provided by the PKI file:
      
          \brief Resets the shaper average CIR.
          
              
      Specified by:
      resetShapeAvgCir in interface PolicyMapQosClass
    • setShapeAvgCir

      public void setShapeAvgCir(int cir)
      Information provided by the PKI file:
      
          \brief Sets shaper average CIR value.
          
          \param cir, shaper average CIR value.
          
              
      Specified by:
      setShapeAvgCir in interface PolicyMapQosClass
      Parameters:
      cir - Takes in a parameter of cir
    • isShapeConfigured

      public boolean isShapeConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if traffic shaping is configured, otherwise false.
          
          \return bool, true if traffic shaping is configured, otherwise false.
          
              
      Specified by:
      isShapeConfigured in interface PolicyMapQosClass
      Returns:
      boolean Returns a boolean
    • getFairQueueSize

      public int getFairQueueSize()
      Information provided by the PKI file:
      
          \brief Returns the fair queue size value.
          
          \return int, the fair queue size value.
          
              
      Specified by:
      getFairQueueSize in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • isFairQueueConfigured

      public boolean isFairQueueConfigured()
      Information provided by the PKI file:
      
          \brief Returns true if fair queueing is configured, otherwise false.
          
          \return bool, true if fair queueing is configured, otherwise false.
          
              
      Specified by:
      isFairQueueConfigured in interface PolicyMapQosClass
      Returns:
      boolean Returns a boolean
    • getDefaultFairQueueSize

      public int getDefaultFairQueueSize()
      Information provided by the PKI file:
      
          \brief Returns the default fair queue size.
          
          \return int, the default fair queue size.
          
              
      Specified by:
      getDefaultFairQueueSize in interface PolicyMapQosClass
      Returns:
      int Returns a int
    • isClassDefault

      public boolean isClassDefault()
      Information provided by the PKI file:
      
          \brief Returns true if class default, otherwise false.
          
          \return bool, true if class default, otherwise false.
          
              
      Specified by:
      isClassDefault in interface PolicyMapQosClass
      Returns:
      boolean Returns a boolean